package demo;

public class MyThread04 {
//匿名内部类创建Runnable子对象
    public static void main(String[] args) {

        Thread t=new Thread(new Runnable() {
            @Override
            public void run() {
                while(true){
                    System.out.println("A");
                }
            }
        });
        t.start();
    }
}
